package com.chiaching.pms.config;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Configuration;

/**
 * @author jiajing.he
 * @date 2021/4/3 11:14
 */
@Configuration
public class SdkConfig implements ApplicationContextAware {

    private ApplicationContext applicationContext;
    /*@Bean
    public CmsSubjectApi cmsSubjectApi(){
       return new FeignClientBuilder(applicationContext).forType(CmsSubjectApi.class,"cmsSubjectApi").build();
    }
*/
    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.applicationContext=applicationContext;
    }
}
